﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _2QWebProxy.App_Code
{
    class GlobalVariables
    {
        public static bool isMultiPort = false;
        public static bool isChainProxy = false;
        //public static bool isDenyWebsite = false;
        //public static bool isDenyIPAddress = false;
        //public static bool isDenyFileType = false;
        //public static bool isAllowWebsite = false;
        //public static bool isAllowIPAddress = false;
        //public static bool isWebsiteDenyFileType = false;
        //public static bool isIPAddressDenyFileType = false;
        public static string ipAddress = String.Empty;
        public static string host = String.Empty;
        public static int ruleType = 0;
        public static List<int> listPriorityRule = new List<int>();
        public static List<byte[]> temp = new List<byte[]>();
        public enum RuleType
        {
            DenyIPAddress = 1,
            AllowIPAddress = 2,
            DenyWebsite = 3,
            AllowWebsite = 4,
            DenyFileType = 5,
            DenyDomainFileType = 6,
            DenyIPAddressFileType = 7,
            AllowFileType = 8,
        }
    }
}
